package com.baigu.member.dao.model;

import java.io.Serializable;
import java.util.Date;

public class BgMembersInviteRecord implements Serializable {
    /**
     * 邀请记录ID
     *
     * @mbg.generated
     */
    private String id;

    /**
     * 邀请人ID
     *
     * @mbg.generated
     */
    private String memberId;

    /**
     * 接受邀请人ID
     *
     * @mbg.generated
     */
    private String inviteMemberId;

    /**
     * 接受邀请人姓名（冗余）
     *
     * @mbg.generated
     */
    private String inviteMemberName;

    /**
     * 接受邀请人手机号（冗余）
     *
     * @mbg.generated
     */
    private Integer inviteMemnerPhone;

    /**
     * 邀请状态（0:未通过，1:通过）
     *
     * @mbg.generated
     */
    private Integer inviteStatus;

    /**
     * 删除标记（0:未删除，1:已删除）
     *
     * @mbg.generated
     */
    private Integer delFlag;

    /**
     * 创建人(默认系统创建:system)
     *
     * @mbg.generated
     */
    private String createBy;

    /**
     * 创建日期
     *
     * @mbg.generated
     */
    private Date createDate;

    /**
     * 最后修改人(默认系统创建:system)
     *
     * @mbg.generated
     */
    private String updateBy;

    /**
     * 最后修改日期
     *
     * @mbg.generated
     */
    private Date updateDate;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getInviteMemberId() {
        return inviteMemberId;
    }

    public void setInviteMemberId(String inviteMemberId) {
        this.inviteMemberId = inviteMemberId;
    }

    public String getInviteMemberName() {
        return inviteMemberName;
    }

    public void setInviteMemberName(String inviteMemberName) {
        this.inviteMemberName = inviteMemberName;
    }

    public Integer getInviteMemnerPhone() {
        return inviteMemnerPhone;
    }

    public void setInviteMemnerPhone(Integer inviteMemnerPhone) {
        this.inviteMemnerPhone = inviteMemnerPhone;
    }

    public Integer getInviteStatus() {
        return inviteStatus;
    }

    public void setInviteStatus(Integer inviteStatus) {
        this.inviteStatus = inviteStatus;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", memberId=").append(memberId);
        sb.append(", inviteMemberId=").append(inviteMemberId);
        sb.append(", inviteMemberName=").append(inviteMemberName);
        sb.append(", inviteMemnerPhone=").append(inviteMemnerPhone);
        sb.append(", inviteStatus=").append(inviteStatus);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", createBy=").append(createBy);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateDate=").append(updateDate);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BgMembersInviteRecord other = (BgMembersInviteRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMemberId() == null ? other.getMemberId() == null : this.getMemberId().equals(other.getMemberId()))
            && (this.getInviteMemberId() == null ? other.getInviteMemberId() == null : this.getInviteMemberId().equals(other.getInviteMemberId()))
            && (this.getInviteMemberName() == null ? other.getInviteMemberName() == null : this.getInviteMemberName().equals(other.getInviteMemberName()))
            && (this.getInviteMemnerPhone() == null ? other.getInviteMemnerPhone() == null : this.getInviteMemnerPhone().equals(other.getInviteMemnerPhone()))
            && (this.getInviteStatus() == null ? other.getInviteStatus() == null : this.getInviteStatus().equals(other.getInviteStatus()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMemberId() == null) ? 0 : getMemberId().hashCode());
        result = prime * result + ((getInviteMemberId() == null) ? 0 : getInviteMemberId().hashCode());
        result = prime * result + ((getInviteMemberName() == null) ? 0 : getInviteMemberName().hashCode());
        result = prime * result + ((getInviteMemnerPhone() == null) ? 0 : getInviteMemnerPhone().hashCode());
        result = prime * result + ((getInviteStatus() == null) ? 0 : getInviteStatus().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        return result;
    }
}